PARSER = parser
DUG = debug
HTTP_SERVER = server

cpp = g++

.PHONY:all
all:$(PARSER) $(DUG) $(HTTP_SERVER)

$(PARSER):parser.cpp
	$(cpp) $^ -o $@ -std=c++11 -lboost_system -lboost_filesystem

$(HTTP_SERVER):http_server.cpp
	$(cpp) $^ -o $@ -std=c++11 -lpthread -ljsoncpp

$(DUG):debug.cpp
	$(cpp) $^ -o $@ -std=c++11 -ljsoncpp -lpthread

.PHONY:clean
clean:
	rm -f $(PARSER) $(HTTP_SERVER) $(DUG)
